<?php
// 配置类型模型
class ZoneModel extends CommonModel {
	protected $_validate = array(
		array('name','require','名称必须'),
		);

	protected $_auto		=	array(
        array('status',1,self::MODEL_INSERT,'string'),
	array('create_time','time',self::MODEL_INSERT,'function'),
  
        
		);
            public function cacheZone($pid){
            if (empty($id)){
                    $pid=1;
            }
            $rs = $this->db->query('select id,name,biznum FROM  '.$this->tablePrefix.'zone  WHERE  pid='.$pid);        
          // foreach ($rs as $vo){
        //	$Data[$vo['id']]	=$vo['name'];
           // }
            F('zones',NULL);
            F('zones',$rs);
           
    }

}
?>